package com.geovis.emergency.spd.entity.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.geovis.emergency.spd.entity.basic.entity.BaseSpdEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 机构表
 * </p>
 *
 * @author 王响
 * @since 2022-03-09
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("system_dept")
@ApiModel(value = "SystemDept对象", description = "机构表")
public class SystemDept extends BaseSpdEntity {

    @ApiModelProperty(value = "父主键")
    private String parentId;

    @ApiModelProperty(value = "机构名")
    private String deptName;

    @ApiModelProperty(value = "机构全称")
    private String fullName;

    @ApiModelProperty(value = "排序")
    private Integer idx;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "祖级列表")
    private String ancestors;

    @ApiModelProperty(value = "是否是根节点")
    private Boolean root;

    @ApiModelProperty(value = "行政区划编码")
    private String regionCode;

    @ApiModelProperty(value = "类型（0：组织机构，1：条线组织机构）")
    private Integer type;

    @ApiModelProperty(value = "引用组织机构编号（条线组织机构）")
    private String refId;

    @ApiModelProperty(value = "引用组织机构名称（条线组织机构）")
    private String refName;

}
